home *** CD-ROM | disk | FTP | other *** search
/ Electronic Print Media Service 1993 July / Electronic Print Media Service 1993 July.iso / mac / image QUEST 2.1.5 / image QUEST EPMS07⁄93 / image QUEST EPMS07_93 / background_3776.xml next >
Encoding:
Extensible Markup Language  |  1993-04-30  |  44.8 KB  |  454 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3776</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3968.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_2086.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>110</left>
  23.             <top>295</top>
  24.             <right>352</right>
  25.             <bottom>326</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>ref</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>20</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>393</left>
  55.             <top>4</top>
  56.             <right>506</right>
  57.             <bottom>17</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>12</textHeight>
  72.         <name>Flsz</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>32</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>0</left>
  87.             <top>20</top>
  88.             <right>512</right>
  89.             <bottom>33</bottom>
  90.         </rect>
  91.         <style>rectangle</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>12</textHeight>
  104.         <name>fullpath</name>
  105.         <script>on mouseup
  106. hide bg fld fullpath
  107. end mouseup
  108. </script>
  109.     </part>
  110.     <part>
  111.         <id>33</id>
  112.         <type>button</type>
  113.         <visible> <true /> </visible>
  114.         <reserved5> 0 </reserved5>
  115.         <reserved4> 0 </reserved4>
  116.         <reserved3> 0 </reserved3>
  117.         <reserved2> 0 </reserved2>
  118.         <reserved1> 0 </reserved1>
  119.         <enabled> <true /> </enabled>
  120.         <rect>
  121.             <left>167</left>
  122.             <top>2</top>
  123.             <right>225</right>
  124.             <bottom>20</bottom>
  125.         </rect>
  126.         <style>transparent</style>
  127.         <showName> <true /> </showName>
  128.         <highlight> <false /> </highlight>
  129.         <autoHighlight> <false /> </autoHighlight>
  130.         <sharedHighlight> <false /> </sharedHighlight>
  131.         <family>0</family>
  132.         <titleWidth>0</titleWidth>
  133.         <icon>0</icon>
  134.         <textAlign>center</textAlign>
  135.         <font>Chicago</font>
  136.         <textSize>12</textSize>
  137.         <textStyle>plain</textStyle>
  138.         <name>Options</name>
  139.         <script>on mousedown
  140. set the hilite of me to true
  141. put "Return To Navigator"┬¼
  142. &return&"Browse From Here"┬¼
  143. &return&"Indexed Image,File Location Info,Delete This Image,Add Cross-Reference"┬¼
  144. &return&"File Access,Copy File,Expand File,Display File,Launch File" into items
  145. put HPopupMenu(items,0,top of me +19,bottom of me+148) into junk
  146. set the hilite of me to false
  147. put item 3 to 4 of junk into menuitem
  148.  
  149. if menuitem = "1,0" then
  150. set hilite of me to false
  151. visual zoom close
  152. go to card "control"
  153. end if
  154.  
  155. if menuitem = "2,0" then
  156. set hilite of me to false
  157. repeat until the mouseclick
  158. go next
  159. show bg fld searching
  160. Put "Click To Stop" into bg fld searching
  161. wait 1 seconds
  162. Put "" into bg fld searching
  163. if the short name of this card is "control" then
  164. exit repeat
  165. end if
  166. end repeat
  167. hide bg fld searching
  168. end if
  169.  
  170. if menuitem = "3,1" then
  171. if the visible of bg fld fullpath = true then
  172. put "The File Location Info is already present."
  173. repeat 5
  174. hide bg fld fullpath
  175. wait 30 ticks
  176. show bg fld fullpath
  177. wait 30 ticks
  178. end repeat
  179. hide msg
  180. exit mousedown
  181. end if
  182. show bg fld fullpath
  183. end if
  184.  
  185. if menuitem = "3,2" then
  186. set hilite of me to false
  187. answer "Are you sure?" with OK or Cancel
  188. if it is "cancel" then
  189. exit mousedown
  190. end if
  191. domenu "delete card"
  192. lock screen
  193. go next
  194. go prev
  195. unlock screen
  196. put "" into card field search of card control
  197. put the number of cards -1 into word 4 of card field "size display" of card 1
  198. end if
  199.  
  200. if menuitem = "3,3" then
  201. set hilite of me to false
  202. put return after bg fld ref
  203. repeat 3
  204. show bg button pointer
  205. wait 30 ticks
  206. hide bg button pointer
  207. wait 30 ticks
  208. end repeat
  209. click at 209,320
  210. end if
  211.  
  212. if menuitem = "4,1" then
  213. if bg fld fullpath contains "CMYK" then
  214. put bg fld fullpath into hold
  215. delete last word of hold
  216. repeat 12
  217. delete last char of hold
  218. end repeat
  219. put hold into sourceFolder
  220. ask file ("Select destination & name.") with "CMYK Folder"
  221. put it into destpath
  222. if DestPath Γëá empty then
  223. set cursor to busy
  224. put "Copying all CMYK files."
  225. CopyFolder sourceFolder,Destpath
  226. if the Result Γëá empty then
  227. answer the Result
  228. else
  229. hide msg
  230. answer "CMYK files copied successfully."
  231. end if
  232. end if
  233. go card control
  234. exit mousedown
  235. end if
  236. put bg fld fullpath into source
  237. ask file "Please enter file name."
  238. if it is empty then exit mousedown
  239. put it into dest
  240. set the cursor to watch
  241. CreateCopy source, dest
  242. if the result is not empty then
  243. put "Please insert the proper diskette and choose Copy File again."
  244. repeat 7
  245. hide bg fld fullpath
  246. wait 30 ticks
  247. show bg fld fullpath
  248. wait 30 ticks
  249. end repeat
  250. hide msg
  251. exit mousedown
  252. end if
  253. set the cursor to normal
  254. put "The file was copied successfully."
  255. wait 3 seconds
  256. hide msg
  257. end if
  258.  
  259. if menuitem = "4,2" then
  260. put word 1 of bg fld flsz into type
  261. put "Please locate this file."
  262. get filename(type)
  263. hide msg
  264. end if
  265.  
  266. if menuitem = "4,3" then
  267. set hilite of me to false
  268. if bg fld flsz contains "TIFF" then
  269. answer "Can not display this file type."
  270. exit mousedown
  271. end if
  272. put "Please locate the file to be displayed."
  273. put filename() into hold
  274. if hold is empty then
  275. hide msg
  276. exit mousedown
  277. end if
  278. put "5,21,484,291" into lastWindow
  279. put "1" into displayOrPrint
  280. lock screen
  281. set lockMessages to true
  282. dispArt hold,displayOrPrint,1,left,top,right,bottom,0,0,0
  283. put the result into XCMDanswer
  284. if xcmdAnswer contains "error" then
  285. answer "Sorry, unable to display file."
  286. else put xcmdAnswer into lastWindow
  287. openCard
  288. hide msg
  289. end if
  290.  
  291. if menuitem = "4,4" then
  292. set hilite of me to false
  293. put "Please locate the file to be launched."
  294. put filename() into hold
  295. if hold is empty then
  296. hide msg
  297. exit mousedown
  298. end if
  299. open hold with "the application"
  300. if it is "Cancel" then
  301. hide msg
  302. exit mousedown
  303. end if
  304. end if
  305.  
  306. end mousedown
  307. </script>
  308.     </part>
  309.     <part>
  310.         <id>40</id>
  311.         <type>field</type>
  312.         <visible> <false /> </visible>
  313.         <dontWrap> <false /> </dontWrap>
  314.         <dontSearch> <true /> </dontSearch>
  315.         <sharedText> <false /> </sharedText>
  316.         <fixedLineHeight> <true /> </fixedLineHeight>
  317.         <autoTab> <false /> </autoTab>
  318.         <lockText> <false /> </lockText>
  319.         <rect>
  320.             <left>398</left>
  321.             <top>236</top>
  322.             <right>507</right>
  323.             <bottom>252</bottom>
  324.         </rect>
  325.         <style>rectangle</style>
  326.         <autoSelect> <false /> </autoSelect>
  327.         <showLines> <false /> </showLines>
  328.         <wideMargins> <false /> </wideMargins>
  329.         <multipleLines> <false /> </multipleLines>
  330.         <reservedFamily> 0 </reservedFamily>
  331.         <titleWidth>0</titleWidth>
  332.         <icon>0</icon>
  333.         <textAlign>center</textAlign>
  334.         <font>Geneva</font>
  335.         <textSize>9</textSize>
  336.         <textStyle>plain</textStyle>
  337.         <textHeight>13</textHeight>
  338.         <name>searching</name>
  339.         <script></script>
  340.     </part>
  341.     <part>
  342.         <id>41</id>
  343.         <type>button</type>
  344.         <visible> <true /> </visible>
  345.         <reserved5> 0 </reserved5>
  346.         <reserved4> 0 </reserved4>
  347.         <reserved3> 0 </reserved3>
  348.         <reserved2> 0 </reserved2>
  349.         <reserved1> 0 </reserved1>
  350.         <enabled> <true /> </enabled>
  351.         <rect>
  352.             <left>44</left>
  353.             <top>2</top>
  354.             <right>73</right>
  355.             <bottom>20</bottom>
  356.         </rect>
  357.         <style>transparent</style>
  358.         <showName> <true /> </showName>
  359.         <highlight> <false /> </highlight>
  360.         <autoHighlight> <false /> </autoHighlight>
  361.         <sharedHighlight> <true /> </sharedHighlight>
  362.         <family>0</family>
  363.         <titleWidth>0</titleWidth>
  364.         <icon>0</icon>
  365.         <textAlign>center</textAlign>
  366.         <font>Chicago</font>
  367.         <textSize>12</textSize>
  368.         <textStyle>plain</textStyle>
  369.         <name>File</name>
  370.         <script>on mousedown
  371. set the hilite of me to true
  372. if the number of this card >1  then
  373. beep
  374. answer "The functions of the File Menu are only available at the Navigator Window."
  375. set the hilite of me to false
  376. exit mousedown
  377. end if
  378. put "Import,A File,A Folder"┬¼
  379. &return&"Merge,Monthly Module,I.Q. Index"┬¼
  380. &return&"Decompress,DiskDoubler™,UnStuffIt™,ColorSqueeze™"¬
  381. &return&"-("¬
  382. &return&"Categories,Add To,Delete From"┬¼
  383. &return&"Find Image,Whole Word,Partial Word,Multi-Word Search"┬¼
  384. &return&"-("¬
  385. &return&"Print Thumbnails,All Images,Initial Descriptions,Marked Favorites"┬¼
  386. &return&"-("¬
  387. &return&"Quit" into items
  388. put HPopupMenu(items,0,top of me +19,bottom of me+25) into junk
  389. set the hilite of me to false
  390. put item 3 to 4 of junk into menuitem
  391. if menuitem = "1,1" then
  392. importfile
  393. end if
  394. if menuitem = "1,2" then
  395. importfolder
  396. end if
  397. if menuitem = "2,1" then
  398. mergemodule
  399. end if
  400. if menuitem = "2,2" then
  401. mergeoldiq
  402. end if
  403. if menuitem = "3,1" then
  404. decompressit
  405. end if
  406. if menuitem = "3,2" then
  407. open UnStuffItΓäó
  408. end if
  409. if menuitem = "3,3" then
  410. open ColorSqueezeΓäó
  411. end if
  412. if menuitem = "5,1" then
  413. newcat
  414. end if
  415. if menuitem = "5,2" then
  416. delcat
  417. end if
  418. if menuitem = "6,1" then
  419. findkey
  420. end if
  421. if menuitem = "6,2" then
  422. findpartial
  423. end if
  424. if menuitem = "6,3" then
  425. Multiwordsearch
  426. end if
  427.  
  428. if menuitem = "8,1" then
  429. unmark all cards
  430. lock screen
  431. hide bg pict
  432. show bg fld menucover
  433. show bg fld fullpath
  434. set the style of bg fld fullpath to opaque
  435. set the style of bg fld ref to transparent
  436. set the loc of bg fld flsz to 224,284
  437. set the loc of bg fld fullpath to 256,316
  438. domenu "print stack..."
  439. show bg pict
  440. hide bg fld menucover
  441. set the style of bg fld fullpath to rectangle
  442. set the style of bg fld ref to scrolling
  443. set the loc of bg fld flsz to 449,10
  444. set the loc of bg fld fullpath to 256,26
  445. go card 1
  446. unlock screen
  447. end if
  448.  
  449. if menuitem = "8,2" then
  450. if card field search = empty then
  451. answer "No favorites selected."
  452. exit mousedown
  453. end if
  454. put "search" into card field whichfield
  455. printthumbs
  456. end if
  457.  
  458. if menuitem = "8,3" then
  459. if card field favs = empty then
  460. answer "No favorites selected."
  461. exit mousedown
  462. end if
  463. put "favs" into card field whichfield
  464. printthumbs
  465. end if
  466.  
  467. if menuitem = "10,0" then
  468. set the hilite of me to false
  469. Answer "End image QUESTΓäó For Now?" with "YES" or "NO"
  470. if it is "no" then
  471. exit mousedown
  472. end if
  473. domenu "Quit Hypercard"
  474. end if
  475. end mousedown
  476. </script>
  477.     </part>
  478.     <part>
  479.         <id>42</id>
  480.         <type>button</type>
  481.         <visible> <true /> </visible>
  482.         <reserved5> 0 </reserved5>
  483.         <reserved4> 0 </reserved4>
  484.         <reserved3> 0 </reserved3>
  485.         <reserved2> 0 </reserved2>
  486.         <reserved1> 0 </reserved1>
  487.         <enabled> <true /> </enabled>
  488.         <rect>
  489.             <left>12</left>
  490.             <top>2</top>
  491.             <right>35</right>
  492.             <bottom>20</bottom>
  493.         </rect>
  494.         <style>transparent</style>
  495.         <showName> <false /> </showName>
  496.         <highlight> <false /> </highlight>
  497.         <autoHighlight> <true /> </autoHighlight>
  498.         <sharedHighlight> <false /> </sharedHighlight>
  499.         <family>0</family>
  500.         <titleWidth>0</titleWidth>
  501.         <icon>0</icon>
  502.         <textAlign>center</textAlign>
  503.         <font>Chicago</font>
  504.         <textSize>12</textSize>
  505.         <textStyle>plain</textStyle>
  506.         <name>About Index</name>
  507.         <script>on mousedown
  508. set the hilite of me to true
  509. put line 1 of SysEnvironment("noDialog:errGlobal") into hold
  510. put offset (",",hold) into file
  511. delete char 1 to file of hold
  512. put offset (",",hold) into file
  513. put char 1 to file of hold into sysver
  514. delete last char of sysver
  515.  
  516. if char 1 of sysver = 6 then
  517. put "About image QUESTΓäó,Compact Stack,Make New Index,-(" into theMenuItems
  518. getdanames
  519. put namesofdas after theMenuItems
  520. put hPopUpMenu (theMenuItems, 0, left of me+9, bottom of me-7) into junk
  521. put item 3 to 4 of junk into menuitem
  522. else
  523. put "About image QUESTΓäó,Compact Stack" into theMenuItems
  524. put hPopUpMenu (theMenuItems, 0, left of me+9, bottom of me-7) into junk
  525. put item 3 to 4 of junk into menuitem
  526. end if
  527.  
  528. if menuitem = "1,0" then
  529. set the hilite of me to false
  530. put the size of this stack into stacksize
  531. repeat 3
  532. delete last char of stacksize
  533. end repeat
  534. put "Images in index:" && the number of cards -1 into card field "size display" of card 1
  535. put "     Index size:" && stacksize & " K" after card field "size display" of card 1
  536. show card field "size display" of card 1
  537. savecolorstate
  538. put the result into res
  539. repeat 2
  540. delete last char of res
  541. end repeat
  542. if res < 256 then
  543. DispPict "lorestartup" ,0,1
  544. else DispPict "Hirestartup" ,0,1
  545. hide card field "size display" of card 1
  546. end if
  547.  
  548. if menuitem = "2,0" then
  549. put "Shrinking size of index file."
  550. domenu "compact Stack"
  551. hide msg
  552. end if
  553.  
  554. if menuitem = "3,0" then
  555. set the hilite of me to false
  556. answer "This will create a blank copy of Image QUESTΓäó on your hard drive." with "OK" or "Cancel"
  557. if it is "Cancel" then exit mousedown
  558. domenu "copy card"
  559. lock screen
  560. domenu "new stack..."
  561. domenu "paste card"
  562. put "0" into bg field ref
  563. go card 1
  564. put "0" into bg field ref
  565. domenu "delete card"
  566. put "0" into bg field ref
  567. put "" into card field search
  568. put "" into card field favs
  569. put "" into bg field fullpath
  570. put "" into card field cat
  571. unlock screen
  572. put "Now updating Navigator information."
  573. domenu "compact stack"
  574. hide msg
  575. exit mousedown
  576. end if
  577.  
  578.  
  579. if item 1 of menuitem > 4 then
  580. put item 1 of menuitem -2 into da
  581. domenu item da of namesofdas
  582. end if
  583.  
  584. end mousedown
  585. </script>
  586.     </part>
  587.     <part>
  588.         <id>43</id>
  589.         <type>button</type>
  590.         <visible> <true /> </visible>
  591.         <reserved5> 0 </reserved5>
  592.         <reserved4> 0 </reserved4>
  593.         <reserved3> 0 </reserved3>
  594.         <reserved2> 0 </reserved2>
  595.         <reserved1> 0 </reserved1>
  596.         <enabled> <true /> </enabled>
  597.         <rect>
  598.             <left>84</left>
  599.             <top>2</top>
  600.             <right>113</right>
  601.             <bottom>20</bottom>
  602.         </rect>
  603.         <style>transparent</style>
  604.         <showName> <true /> </showName>
  605.         <highlight> <false /> </highlight>
  606.         <autoHighlight> <false /> </autoHighlight>
  607.         <sharedHighlight> <true /> </sharedHighlight>
  608.         <family>0</family>
  609.         <titleWidth>0</titleWidth>
  610.         <icon>0</icon>
  611.         <textAlign>center</textAlign>
  612.         <font>Chicago</font>
  613.         <textSize>12</textSize>
  614.         <textStyle>plain</textStyle>
  615.         <name>Edit</name>
  616.         <script>on mousedown
  617. set the hilite of me to true
  618. if the number of this card >1  then
  619. beep
  620. answer "The functions of the Edit Menu are only available at the Navigator Window."
  621. set the hilite of me to false
  622. exit mousedown
  623. end if
  624. put "Change Path Information"┬¼
  625. &return&"Delete All Images"┬¼
  626. &return&"Clear Marked Favorites"┬¼
  627. &return&"-("¬
  628. &return&"Upgrade..."¬
  629. &return&"Preferences,Browse Speed,Description Options" into items
  630. put HPopupMenu(items,0,left of me -63, bottom of me +65) into junk
  631. set the hilite of me to false
  632. put item 3 to 4 of junk into menuitem
  633.  
  634. if menuitem = "1,0" then
  635. global errGlobal
  636. put FolderPath("Choose a folder.") into fldrpth
  637. if fldrpth = empty then exit mousedown
  638. put FolderContents(fldrpth, "Both", "noDialog:errGlobal") ┬¼
  639. into FldrCnts
  640. if errGlobal Γëá empty then
  641. answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
  642. put empty into errGlobal
  643. end if
  644. put "Changing path information..."
  645. lock screen
  646. repeat the number of lines of fldrcnts
  647. put line 1 of fldrpth into hold
  648. put line 1 of fldrcnts after hold
  649. put line 1 of fldrcnts into look
  650. find look
  651. if the foundline is empty then
  652. Answer "Image" &&quote &look &quote && "not indexed." with "Continue"
  653. end if
  654. put hold into bg fld fullpath
  655. put offset (":",hold) into file
  656. put char 1 to file of hold into dsk
  657. repeat
  658. if hold contains ":" then
  659. put offset (":",hold) into file
  660. delete char 1 to file of hold
  661. else exit repeat
  662. end repeat
  663. delete line 1 of fldrcnts
  664. end repeat
  665. go card 1
  666. unlock screen
  667. hide msg
  668. end if
  669.  
  670. if menuitem = "2,0" then
  671. deleteall
  672. end if
  673.  
  674. if menuitem = "3,0" then
  675. answer "Are you sure you want to delete the Marked Favorites list?" with "OK" or "Cancel"
  676. if it is "Cancel" then exit mousedown
  677. put "" into card field favs
  678. end if
  679.  
  680.  
  681. if menuitem = "5,0" then
  682. find whole "Upgrade"
  683. if the foundline is empty then
  684. Answer "There are no upgrades available at this time."
  685. exit mousedown
  686. end if
  687. do bg fld "fullpath"
  688. find whole "Upgrade"
  689. domenu "delete card"
  690. end if
  691.  
  692. if menuitem = "6,1" then
  693. put "1 Second" into types
  694. put return & "2 Seconds" after types
  695. put return & "3 Seconds" after types
  696. put return & "4 Seconds" after types
  697. put return & "5 Seconds" after types
  698. put ChooseSome (types,"Delay between images.") into hold
  699. put char 1 of hold into card field browsespeed
  700. end if
  701.  
  702. if menuitem = "6,2" then
  703. if card field importops is empty then
  704. put "Enter custom descriptions." into types
  705. put return & "Default to file name." after types
  706. put ChooseSome (types,"Select one.") into card field importops
  707. else
  708. put "Description Option is currently set to" ┬¼
  709. &&quote & card field importops &quote
  710. put "Enter custom descriptions." into types
  711. put return & "Default to file name." after types
  712. put ChooseSome (types,"Select one.") into card field importops
  713. hide msg
  714. end if
  715. end if
  716.  
  717. end mousedown</script>
  718.     </part>
  719.     <part>
  720.         <id>44</id>
  721.         <type>button</type>
  722.         <visible> <true /> </visible>
  723.         <reserved5> 0 </reserved5>
  724.         <reserved4> 0 </reserved4>
  725.         <reserved3> 0 </reserved3>
  726.         <reserved2> 0 </reserved2>
  727.         <reserved1> 0 </reserved1>
  728.         <enabled> <true /> </enabled>
  729.         <rect>
  730.             <left>124</left>
  731.             <top>2</top>
  732.             <right>158</right>
  733.             <bottom>20</bottom>
  734.         </rect>
  735.         <style>transparent</style>
  736.         <showName> <true /> </showName>
  737.         <highlight> <false /> </highlight>
  738.         <autoHighlight> <false /> </autoHighlight>
  739.         <sharedHighlight> <true /> </sharedHighlight>
  740.         <family>0</family>
  741.         <titleWidth>0</titleWidth>
  742.         <icon>0</icon>
  743.         <textAlign>center</textAlign>
  744.         <font>Chicago</font>
  745.         <textSize>12</textSize>
  746.         <textStyle>plain</textStyle>
  747.         <name>View</name>
  748.         <script>on mousedown
  749. set the hilite of me to true
  750. put "All Images"┬¼
  751. &return&"Initial Descriptions"┬¼
  752. &return&"Marked Favorites"┬¼
  753. &return&"News & Events"┬¼
  754. &return&"Tools,Navigation" into items
  755. put HPopupMenu(items,0,top of me +19,bottom of me+105) into junk
  756. set the hilite of me to false
  757. put item 3 to 4 of junk into menuitem
  758.  
  759. if menuitem = "1,0" then
  760. browseall
  761. end if
  762. if menuitem = "2,0" then
  763. if card field search of card 1 is empty then
  764. answer "There are no images selected."
  765. exit mousedown
  766. end if
  767. put "search" into card field whichfield of card 1
  768. browsem
  769. end if
  770. if menuitem = "3,0" then
  771. if card field favs of card 1 is empty then
  772. answer "There are no images selected."
  773. exit mousedown
  774. end if
  775. put favs into card field whichfield of card 1
  776. browsem
  777. end if
  778. if menuitem = "4,0" then
  779. if the number of this card >1  then
  780. beep
  781. answer "Please retern to the Navigator Window to view the News & Events marquee."
  782. set the hilite of me to false
  783. exit mousedown
  784. end if
  785. news
  786. end if
  787. if menuitem = "5,1" then
  788. palette "Nav Tools", "399,264"
  789. end if
  790.  
  791. end mousedown</script>
  792.     </part>
  793.     <part>
  794.         <id>45</id>
  795.         <type>button</type>
  796.         <visible> <true /> </visible>
  797.         <reserved5> 0 </reserved5>
  798.         <reserved4> 0 </reserved4>
  799.         <reserved3> 0 </reserved3>
  800.         <reserved2> 0 </reserved2>
  801.         <reserved1> 0 </reserved1>
  802.         <enabled> <true /> </enabled>
  803.         <rect>
  804.             <left>358</left>
  805.             <top>300</top>
  806.             <right>374</right>
  807.             <bottom>316</bottom>
  808.         </rect>
  809.         <style>transparent</style>
  810.         <showName> <false /> </showName>
  811.         <highlight> <false /> </highlight>
  812.         <autoHighlight> <false /> </autoHighlight>
  813.         <sharedHighlight> <false /> </sharedHighlight>
  814.         <family>0</family>
  815.         <titleWidth>0</titleWidth>
  816.         <icon>0</icon>
  817.         <textAlign>center</textAlign>
  818.         <font>Chicago</font>
  819.         <textSize>12</textSize>
  820.         <textStyle>plain</textStyle>
  821.         <name>Next</name>
  822.         <script>on mouseUp
  823. visual wipe up slow
  824. go next
  825. end mouseUp</script>
  826.     </part>
  827.     <part>
  828.         <id>46</id>
  829.         <type>button</type>
  830.         <visible> <true /> </visible>
  831.         <reserved5> 0 </reserved5>
  832.         <reserved4> 0 </reserved4>
  833.         <reserved3> 0 </reserved3>
  834.         <reserved2> 0 </reserved2>
  835.         <reserved1> 0 </reserved1>
  836.         <enabled> <true /> </enabled>
  837.         <rect>
  838.             <left>373</left>
  839.             <top>316</top>
  840.             <right>389</right>
  841.             <bottom>331</bottom>
  842.         </rect>
  843.         <style>transparent</style>
  844.         <showName> <false /> </showName>
  845.         <highlight> <false /> </highlight>
  846.         <autoHighlight> <false /> </autoHighlight>
  847.         <sharedHighlight> <false /> </sharedHighlight>
  848.         <family>0</family>
  849.         <titleWidth>0</titleWidth>
  850.         <icon>0</icon>
  851.         <textAlign>center</textAlign>
  852.         <font>Chicago</font>
  853.         <textSize>12</textSize>
  854.         <textStyle>plain</textStyle>
  855.         <name>Prev</name>
  856.         <script>on mouseUp
  857. visual wipe down slow
  858. go prev
  859. end mouseUp</script>
  860.     </part>
  861.     <part>
  862.         <id>47</id>
  863.         <type>field</type>
  864.         <visible> <false /> </visible>
  865.         <dontWrap> <false /> </dontWrap>
  866.         <dontSearch> <false /> </dontSearch>
  867.         <sharedText> <false /> </sharedText>
  868.         <fixedLineHeight> <false /> </fixedLineHeight>
  869.         <autoTab> <false /> </autoTab>
  870.         <lockText> <false /> </lockText>
  871.         <rect>
  872.             <left>38</left>
  873.             <top>2</top>
  874.             <right>254</right>
  875.             <bottom>19</bottom>
  876.         </rect>
  877.         <style>opaque</style>
  878.         <autoSelect> <false /> </autoSelect>
  879.         <showLines> <false /> </showLines>
  880.         <wideMargins> <false /> </wideMargins>
  881.         <multipleLines> <false /> </multipleLines>
  882.         <reservedFamily> 0 </reservedFamily>
  883.         <titleWidth>0</titleWidth>
  884.         <icon>0</icon>
  885.         <textAlign>left</textAlign>
  886.         <font>Geneva</font>
  887.         <textSize>12</textSize>
  888.         <textStyle>plain</textStyle>
  889.         <textHeight>16</textHeight>
  890.         <name>menucover</name>
  891.         <script></script>
  892.     </part>
  893.     <part>
  894.         <id>48</id>
  895.         <type>button</type>
  896.         <visible> <false /> </visible>
  897.         <reserved5> 0 </reserved5>
  898.         <reserved4> 0 </reserved4>
  899.         <reserved3> 0 </reserved3>
  900.         <reserved2> 0 </reserved2>
  901.         <reserved1> 0 </reserved1>
  902.         <enabled> <true /> </enabled>
  903.         <rect>
  904.             <left>90</left>
  905.             <top>305</top>
  906.             <right>122</right>
  907.             <bottom>322</bottom>
  908.         </rect>
  909.         <style>transparent</style>
  910.         <showName> <false /> </showName>
  911.         <highlight> <false /> </highlight>
  912.         <autoHighlight> <false /> </autoHighlight>
  913.         <sharedHighlight> <false /> </sharedHighlight>
  914.         <family>0</family>
  915.         <titleWidth>0</titleWidth>
  916.         <icon>29484</icon>
  917.         <textAlign>center</textAlign>
  918.         <font>Chicago</font>
  919.         <textSize>12</textSize>
  920.         <textStyle>plain</textStyle>
  921.         <name>pointer</name>
  922.         <script></script>
  923.     </part>
  924.     <part>
  925.         <id>50</id>
  926.         <type>field</type>
  927.         <visible> <false /> </visible>
  928.         <dontWrap> <false /> </dontWrap>
  929.         <dontSearch> <false /> </dontSearch>
  930.         <sharedText> <false /> </sharedText>
  931.         <fixedLineHeight> <false /> </fixedLineHeight>
  932.         <autoTab> <false /> </autoTab>
  933.         <lockText> <false /> </lockText>
  934.         <rect>
  935.             <left>398</left>
  936.             <top>36</top>
  937.             <right>507</right>
  938.             <bottom>235</bottom>
  939.         </rect>
  940.         <style>scrolling</style>
  941.         <autoSelect> <false /> </autoSelect>
  942.         <showLines> <false /> </showLines>
  943.         <wideMargins> <false /> </wideMargins>
  944.         <multipleLines> <false /> </multipleLines>
  945.         <reservedFamily> 0 </reservedFamily>
  946.         <titleWidth>0</titleWidth>
  947.         <icon>0</icon>
  948.         <textAlign>left</textAlign>
  949.         <font>Geneva</font>
  950.         <textSize>9</textSize>
  951.         <textStyle>plain</textStyle>
  952.         <textHeight>12</textHeight>
  953.         <name>notes</name>
  954.         <script></script>
  955.     </part>
  956.     <name>navback</name>
  957.     <script>on dispPictError initialHandler, xcmdAnswer, whichFile
  958. if xcmdAnswer contains "File not found" then
  959. addThisPath initialHandler
  960. end if
  961. if xcmdAnswer contains "Not enough memory" then
  962. dialogIt "There is not enough memory to open the file" &&quote& ┬¼
  963. whichFile &quote& "."
  964. end if
  965. if xcmdAnswer contains "user cancelled operation" then
  966. --the user hit command-period to cancel
  967. end if
  968. end dispPICTerror
  969.  
  970. on returntonav
  971. visual zoom close
  972. go card 1
  973. end returntonav
  974.  
  975. on importFile
  976. go to card 1
  977. put "PAINT" into types
  978. put return & "PICT" after types
  979. put return & "EPS" after types
  980. put ChooseSome (types,"File Format?") into format
  981. if format is empty then exit importfile
  982. if format is "PAINT" then
  983. put "PNTG" into type
  984. end if
  985. if format is "PICT" then
  986. put "PICT" into type
  987. end if
  988. if format is "EPS" then
  989. put "EPSF" into type
  990. end if
  991. if format is "TIFF" then
  992. put "TIFF" into type
  993. end if
  994. put "Description Option is currently set to" ┬¼
  995. &&quote & card field importops &quote
  996. put filename(type) into hold
  997. if hold is empty then
  998. if the short name of this card = "control" then
  999. hide msg
  1000. exit importFile
  1001. end if
  1002. end if
  1003. put "Importing image(s)."
  1004. lock screen
  1005. go last card
  1006. type "N" with commandkey
  1007. set lockMessages to true
  1008. tinyPICT Hold,200,200
  1009. put the result into xcmdAnswer
  1010. if xcmdAnswer contains "error" then
  1011. dispPictError "displayTiny",xcmdAnswer,whichPath
  1012. openCard
  1013. return xcmdAnswer
  1014. exit importFile
  1015. end if
  1016. type "V" with commandKey
  1017. drag from 0,00 to 150,60
  1018. choose browse tool
  1019. unlock screen
  1020. put FileSize(hold, "nodialog:errGlobal") into fs
  1021. put hold into bg fld fullpath
  1022. put offset (":",hold) into file
  1023. repeat 3
  1024. delete last char of fs
  1025. end repeat
  1026. put type && "File is" && fs && "K" into background fld flsz
  1027. unlock screen
  1028. hide msg
  1029. put the number of cards -1 into numcrds
  1030. put the size of this stack into stacksize
  1031. repeat 3
  1032. delete last char of stacksize
  1033. end repeat
  1034. put "Images in index:" && numcrds into card fld "size display" of card 1
  1035. put "    Index size:" && stacksize && "K" after card fld "size display" of card 1
  1036. if card field importops of card 1 contains "enter custom descriptions." then
  1037. repeat until the mouseclick
  1038. wait 20 ticks
  1039. put "" into bg fld ref
  1040. wait 20 ticks
  1041. put "Click here to enter image description." into bg fld ref
  1042. wait 20 ticks
  1043. end repeat
  1044. put "" into bg fld ref
  1045. click at 211,298
  1046. end if
  1047. if card field importops of card 1 contains "default to file name." then
  1048. repeat
  1049. if hold contains ":" then
  1050. put offset (":",hold) into file
  1051. delete char 1 to file of hold
  1052. else exit repeat
  1053. end repeat
  1054. put hold into bg fld ref
  1055. end if
  1056. end importFile
  1057.  
  1058. on importfolder
  1059. global errGlobal
  1060. put "Description Option is currently set to" ┬¼
  1061. &&quote & card field "importops"  &quote
  1062. put FolderPath("Choose a folder to import.") into fldrpth
  1063. if fldrpth = empty then exit importfolder
  1064. put FolderContents(fldrpth, "Both", "noDialog:errGlobal") ┬¼
  1065. into FldrCnts
  1066. if errGlobal Γëá empty then
  1067. answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
  1068. put empty into errGlobal
  1069. end if
  1070. put line 1 of fldrpth into hold
  1071. put line 1 of fldrcnts after hold
  1072. put the number of lines of fldrcnts into reps
  1073. put "Importing image(s)."
  1074. lock screen
  1075. repeat reps
  1076. put FileType(hold) into format
  1077. if format = "EPSF" or format = "PICT" or format = "PNTG" then
  1078. go last card
  1079. type "N" with commandkey
  1080. tinyPICT Hold,200,200
  1081. put the result into xcmdAnswer
  1082. if xcmdAnswer contains "error" then
  1083. dispPictError "displayTiny",xcmdAnswer,whichPath
  1084. openCard
  1085. return xcmdAnswer
  1086. exit importfolder
  1087. end if
  1088. type "V" with commandKey
  1089. drag from 0,00 to 150,60
  1090. choose browse tool
  1091. put FileSize(hold, "nodialog:errGlobal") into fs
  1092. put hold into bg fld fullpath
  1093. repeat 3
  1094. delete last char of fs
  1095. end repeat
  1096. put format && "File is" && fs && "K" into background fld flsz
  1097. unlock screen
  1098. if card field importops of card 1 contains "default to file name." then
  1099. put hold into keep
  1100. repeat
  1101. if keep contains ":" then
  1102. put offset (":",keep) into file
  1103. delete char 1 to file of keep
  1104. else exit repeat
  1105. end repeat
  1106. put keep into bg fld ref
  1107. end if
  1108. if card field importops of card 1 contains "enter custom descriptions." then
  1109. wait 2 seconds
  1110. ask "Please enter an image description."
  1111. put it into bg fld ref
  1112. end if
  1113. delete line 1 of fldrcnts
  1114. put "" into hold
  1115. put line 1 of fldrpth into hold
  1116. put line 1 of fldrcnts after hold
  1117. lock screen
  1118. end if
  1119. end repeat
  1120. put the number of cards -1 into numcrds
  1121. put the size of this stack into stacksize
  1122. repeat 3
  1123. delete last char of stacksize
  1124. end repeat
  1125. put "Images in index:" && numcrds into card fld "size display" of card 1
  1126. put "    Index size:" && stacksize && "K" after card fld "size display" of card 1
  1127. hide msg
  1128. go card 1
  1129. unlock screen
  1130. end importfolder
  1131.  
  1132. on browseall
  1133. put card field browsespeed of card 1 into secs
  1134. go card 1
  1135. repeat until the mouseclick
  1136. go next
  1137. show bg fld searching
  1138. put "Click to stop." into bg fld searching
  1139. wait secs seconds
  1140. put "" into bg fld searching
  1141. if the short name of this card is "control" then
  1142. exit repeat
  1143. end if
  1144. end repeat
  1145. hide bg fld searching
  1146. end browseall
  1147.  
  1148. on browsem
  1149. put card field browsespeed of card 1 into secs
  1150. lock screen
  1151. go card 1
  1152. put card field whichfield of card 1 into ho
  1153. put card field ho into howmany
  1154. go next
  1155. repeat --until the mouseclick
  1156. find string line 1 of howmany
  1157. put the number of this card into cardno
  1158. unlock screen
  1159. show bg fld searching
  1160. put "Click to stop." into bg fld searching
  1161. wait secs seconds
  1162. put "" into bg fld searching
  1163. delete line 1 of howmany
  1164. lock screen
  1165. go card 1
  1166. go next
  1167. if howmany is empty then
  1168. go card 1
  1169. exit repeat
  1170. end if
  1171. if the mouse is down then
  1172. go card cardno
  1173. exit repeat
  1174. end if
  1175. end repeat
  1176. hide bg fld searching
  1177. click at 500,500
  1178. end browsem
  1179.  
  1180. on mergemodule
  1181. global destination,source
  1182. put the long name of this stack into destination
  1183. put "" into source
  1184. repeat until source contains "module"
  1185. put "Insert the module disk and select the monthly module."
  1186. put filename("STAK") into source
  1187. if source is empty then
  1188. hide msg
  1189. exit mergemodule
  1190. end if
  1191. if "Module" is not in source then
  1192. answer "That's not an image module. Please try again."
  1193. end if
  1194. put source into hang
  1195. put offset (":",hang) into vol
  1196. end repeat
  1197. go to card 1
  1198. hide msg
  1199. lock screen
  1200. go to card 1 of stack source
  1201. put the number of cards into cardcount
  1202. put bg fld fullpath into dupe
  1203. go first card of destination
  1204. find string dupe in bg fld fullpath
  1205. if the foundline is not empty then
  1206. go card 1
  1207. answer "This module has already been merged!"
  1208. exit mergemodule
  1209. end if
  1210. go to stack source
  1211. put card field marqueeinfo into info
  1212. put card field cats into newcats
  1213. repeat with i = 1 to the number of cards
  1214. set cursor to busy
  1215. put "Now merging info for image " & cardcount & "."
  1216. put bg fld ref into desc
  1217. put bg fld flsz into typensize
  1218. put bg fld fullpath into bigwhere
  1219. choose select tool
  1220. domenu select all
  1221. domenu "copy picture"
  1222. go next card
  1223. push card
  1224. go last card of destination
  1225. type "N" with commandkey
  1226. domenu "paste picture"
  1227. domenu "transparent"
  1228. put desc into bg fld ref
  1229. put typensize into bg fld flsz
  1230. put bigwhere into bg fld fullpath
  1231. go last card of destination
  1232. pop card
  1233. subtract 1 from cardcount
  1234. end repeat
  1235. choose browse tool
  1236. go first card of destination
  1237. put "Now updating categories."
  1238. repeat the number of lines in newcats
  1239. find line 1 of newcats in card field cat
  1240. if the foundline is empty then
  1241. put return & line 1 of newcats after card field cat
  1242. delete line 1 of newcats
  1243. else
  1244. delete line 1 of newcats
  1245. end if
  1246. end repeat
  1247. alpha
  1248. unlock screen
  1249. set the locktext of card field cat to false
  1250. repeat with i=1 to the number of lines of card field cat
  1251. GET char 1 of line i of card field cat
  1252. SELECT char 1 of line i of card field cat
  1253. if it is "a" then type "A"
  1254. if it is "b" then type "B"
  1255. if it is "c" then type "C"
  1256. if it is "d" then type "D"
  1257. if it is "e" then type "E"
  1258. if it is "f" then type "F"
  1259. if it is "g" then type "G"
  1260. if it is "h" then type "H"
  1261. if it is "i" then type "I"
  1262. if it is "j" then type "J"
  1263. if it is "k" then type "K"
  1264. if it is "l" then type "L"
  1265. if it is "m" then type "M"
  1266. if it is "n" then type "N"
  1267. if it is "o" then type "O"
  1268. if it is "p" then type "P"
  1269. if it is "q" then type "Q"
  1270. if it is "r" then type "R"
  1271. if it is "s" then type "S"
  1272. if it is "t" then type "T"
  1273. if it is "u" then type "U"
  1274. if it is "v" then type "V"
  1275. if it is "w" then type "W"
  1276. if it is "x" then type "X"
  1277. if it is "y" then type "Y"
  1278. if it is "z" then type "Z"
  1279. end repeat
  1280. set the locktext of card field cat to true
  1281. set the scroll of card field cat to 0
  1282. choose the browse tool
  1283. click at 500,500
  1284. put the number of cards -1 into numcrds
  1285. put the size of this stack into stacksize
  1286. repeat 3
  1287. delete last char of stacksize
  1288. end repeat
  1289. put "Images in index:" && numcrds into card fld "size display"
  1290. put "    Index size:" && stacksize && "K" after card fld "size display"
  1291. put info into card field info2
  1292. put "Merge process complete."
  1293. wait 2 seconds
  1294. hide msg
  1295. EjectDisk hang, "noDialog:errGlobal"
  1296. end mergemodule
  1297.  
  1298. on newcat
  1299. Ask "Enter new category."
  1300. if it is "" then
  1301. exit newcat
  1302. end if
  1303. if it is "Cancel" then
  1304. exit newcat
  1305. end if
  1306. put return & it after card field cat
  1307. alpha
  1308. find whole it in card field cat
  1309. wait 1 second
  1310. click at 500,500
  1311. end newcat
  1312.  
  1313. on delcat
  1314. ask "Enter category to delete."
  1315. if it is "" then
  1316. exit delcat
  1317. end if
  1318. if it is "Cancel" then
  1319. exit delcat
  1320. else
  1321. find whole it in card field cat
  1322. if the foundline is empty then
  1323. answer "Sorry!" &&quote &it &quote && "is not in the current list of categories."
  1324. else
  1325. delete the foundline
  1326. end if
  1327. end if
  1328. end delcat
  1329.  
  1330. on findkey
  1331. go card 1
  1332. ask "Please enter a key word(s)."
  1333. if it is "" then exit findkey
  1334. put it into card field checkit
  1335. put "" into card field search
  1336. put "One moment please. . ."
  1337. lock screen
  1338. find whole it
  1339. if the foundline is empty then
  1340. hide msg
  1341. Answer "Sorry, can't find" &&quote &it &quote
  1342. exit findkey
  1343. end if
  1344. put the number of lines of card field search of card ┬¼
  1345. "control" into request
  1346. go next
  1347. if bg fld "ref" contains it then
  1348. add 1 to request
  1349. put line 1 of bg fld "ref" of card 2 into card field search of card control
  1350. end if
  1351. repeat until the number of this card is 1
  1352. add 1 to request
  1353. go next
  1354. find whole it
  1355. if the short name of this card contains "control" then
  1356. wait 20 ticks
  1357. else
  1358. put line 1 of bg fld "ref" into line request ┬¼
  1359. of card field search of card "control"
  1360. end if
  1361. end repeat
  1362. click at 500,500
  1363. hide msg
  1364. unlock screen
  1365. if card field search = "" then
  1366. go to card 1
  1367. Answer "Sorry, can't find" &&quote &it &quote
  1368. end if
  1369. end findkey
  1370.  
  1371. on findpartial
  1372. ask "Please enter a key word(s)."
  1373. if it is "" then exit findpartial
  1374. put it into card field checkit
  1375. put "" into card field search
  1376. put "One moment please. . ."
  1377. lock screen
  1378. find string it
  1379. if the foundline is empty then
  1380. hide msg
  1381. Answer "Sorry, can't find" &&quote &it &quote
  1382. exit findpartial
  1383. end if
  1384. put the number of lines of card field search of card ┬¼
  1385. "control" into request
  1386. go next
  1387. if bg fld "ref" contains it then
  1388. add 1 to request
  1389. put line 1 of bg fld "ref" of card 2 into card field search of card control
  1390. end if
  1391. repeat until the number of this card is 1
  1392. add 1 to request
  1393. go next
  1394. find string it
  1395. if the short name of this card contains "control" then
  1396. wait 20 ticks
  1397. else
  1398. put line 1 of bg fld "ref" into line request ┬¼
  1399. of card field search of card "control"
  1400. end if
  1401. end repeat
  1402. click at 500,500
  1403. hide msg
  1404. unlock screen
  1405. if card field search = "" then
  1406. go to card 1
  1407. Answer "Sorry, can't find" &&quote &it &quote
  1408. end if
  1409. end findpartial
  1410.  
  1411. on Alpha
  1412. put AlphaSort(card field cat) into card field cat
  1413. end Alpha
  1414.  
  1415. on printthumbs
  1416. unmark all cards
  1417. get card field whichfield
  1418. put card field it of card 1 into hold
  1419. lock screen
  1420. repeat the number of lines of hold
  1421. go next
  1422. find string line 1 of hold
  1423. if the number of this card = 1 then
  1424. wait 20 ticks
  1425. else
  1426. mark this card
  1427. hide bg pict
  1428. show bg fld menucover
  1429. show bg fld fullpath
  1430. set the style of bg fld fullpath to opaque
  1431. set the style of bg fld ref to transparent
  1432. set the loc of bg fld flsz to 224,284
  1433. set the loc of bg fld fullpath to 256,316
  1434. end if
  1435. delete line 1 of hold
  1436. go card 1
  1437. end repeat
  1438. domenu "print stack..."
  1439. show bg pict
  1440. hide bg fld menucover
  1441. set the style of bg fld fullpath to rectangle
  1442. set the style of bg fld ref to scrolling
  1443. set the loc of bg fld flsz to 449,10
  1444. set the loc of bg fld fullpath to 256,26
  1445. go card 1
  1446. unmark all cards
  1447. unlock screen
  1448. end printthumbs
  1449.  
  1450. on news
  1451. set the style of card field marquee to opaque
  1452. put card field info2 into card field marquee
  1453. repeat the number of chars in card field marquee
  1454. if the mouse is down then
  1455. put "" into card field marquee
  1456. set the style of card field marquee to transparent
  1457. exit news
  1458. end if
  1459. wait 4 ticks
  1460. delete char 1 of card field marquee
  1461. end repeat
  1462. wait 30 ticks
  1463. set the style of card field marquee to transparent
  1464. end news
  1465.  
  1466. on toolboxbrowse
  1467. answer "Browse..." with "All" or "Initial" or "Favorites"
  1468. if it is "all" then browseall
  1469. if it is "initial" then put "initial" into card field whichfield
  1470. if it is "favorites" then browsefavs
  1471. end toolboxbrowse
  1472.  
  1473. on toolboximport
  1474. answer "Import..." with "File" or "Folder" or "Cancel"
  1475. if it is "File" then importfile
  1476. if it is "folder" then importfolder
  1477. if it is "cancel" then exit toolboximport
  1478. end toolboximport
  1479.  
  1480. on notes
  1481. if the number of this card = 1 then
  1482. exit notes
  1483. end if
  1484. put "***  NOTES ***" into line 1 of bg fld notes
  1485. if the visible of bg fld notes = false then
  1486. show bg fld notes
  1487. else hide bg fld notes
  1488. end notes
  1489.  
  1490. on gomonth
  1491. put "Designer's Club" after types
  1492. put return & "Electronic Clipper" after types
  1493. put return & "Electronic PMS" after types
  1494. put ChooseSome (types,"Choose which product to search.") into it
  1495. if it is "" then
  1496. exit gomonth
  1497. end if
  1498.  
  1499. if it is "Designer's Club" then
  1500. put DC into product
  1501. end if
  1502. if it is "Electronic Clipper" then
  1503. put EC into product
  1504. end if
  1505. if it is "Electronic PMS" then
  1506. put EPMS into product
  1507. end if
  1508. answer "Select media to search." with "Diskette" or "CD-ROM"
  1509. if it is "Diskette" then
  1510. lock screen
  1511. put "January" into types
  1512. put return & "February" after types
  1513. put return & "March" after types
  1514. put return & "April" after types
  1515. put return & "May" after types
  1516. put return & "June" after types
  1517. put return & "July" after types
  1518. put return & "August" after types
  1519. put return & "September" after types
  1520. put return & "October" after types
  1521. put return & "November" after types
  1522. put return & "December" after types
  1523. put ChooseSome (types,"Choose a month.") into month
  1524. if month is empty then
  1525. exit gomonth
  1526. end if
  1527. ask "What year?"
  1528. if the number of chars in it > 2 then
  1529. repeat 2
  1530. delete char 1 of it
  1531. end repeat
  1532. end if
  1533. put " '" & it after month
  1534. put product & " " before month
  1535. go card 1
  1536. find whole month
  1537. if the foundline is empty then
  1538. repeat until the number of chars in word 2 of month = 4
  1539. delete last char of word 2 of month
  1540. end repeat
  1541. find whole month
  1542. end if
  1543. if the foundline is empty then
  1544. repeat until the number of chars in word 2 of month = 3
  1545. delete last char of word 2 of month
  1546. end repeat
  1547. find whole month
  1548. end if
  1549. if the foundline is empty then
  1550. answer "Sorry! Can't find that month and year."
  1551. end if
  1552. click at 500,500
  1553. unlock screen
  1554. end if
  1555.  
  1556. if it is "CD-ROM" then
  1557. lock screen
  1558. put "01" into types
  1559. put return & "02" after types
  1560. put return & "03" after types
  1561. put return & "04" after types
  1562. put return & "05" after types
  1563. put return & "06" after types
  1564. put return & "07" after types
  1565. put return & "08" after types
  1566. put return & "09" after types
  1567. put return & "10" after types
  1568. put return & "11" after types
  1569. put return & "12" after types
  1570. put ChooseSome (types,"Choose an issue.") into month
  1571. if month is empty then
  1572. exit gomonth
  1573. end if
  1574. ask "What year?"
  1575. if the number of chars in it > 2 then
  1576. repeat 2
  1577. delete char 1 of it
  1578. end repeat
  1579. end if
  1580. put "/" & it after month
  1581. put product before month
  1582. go card 1
  1583. find whole month
  1584. if the foundline is empty then
  1585. answer "Sorry! Can't find that month and year."
  1586. end if
  1587. click at 500,500
  1588. unlock screen
  1589. end if
  1590. end gomonth
  1591.  
  1592.  
  1593.  
  1594. on multiwordsearch
  1595. put "" into card field search
  1596. Ask "Enter primary subject."
  1597. put it into firstsearch
  1598. put it into card field checkit
  1599. Ask "Enter secondary subject."
  1600. put it into secondsearch
  1601. put "One moment please. . ."
  1602. lock screen
  1603. set lockmessages to true
  1604. find whole firstsearch
  1605. if the foundline is empty then
  1606. answer "No matches found!"
  1607. hide msg
  1608. exit multiwordsearch
  1609. end if
  1610. put the foundline into select
  1611. put the number of lines of card field search of card ┬¼
  1612. "control" into request
  1613. go next
  1614. if bg fld "ref" contains firstsearch then
  1615. add 1 to request
  1616. put line 1 of bg fld "ref" of card 2 into card field search of card control
  1617. end if
  1618. repeat until the number of this card is 1
  1619. add 1 to request
  1620. go next
  1621. find whole firstsearch
  1622. if the short name of this card contains "control" then
  1623. wait 20 ticks
  1624. else
  1625. put line 1 of bg fld "ref" into line request ┬¼
  1626. of card field search of card "control"
  1627. end if
  1628. end repeat
  1629. repeat
  1630. find secondsearch in card field search
  1631. if the foundline is empty then exit repeat
  1632. put the foundline into select
  1633. select the foundline
  1634. put return & the selectedtext after holder
  1635. delete select
  1636. end repeat
  1637. put holder into card field search
  1638. delete line 1 of card field search
  1639. if card field search is empty then
  1640. answer "No matches found!"
  1641. hide msg
  1642. exit multiwordsearch
  1643. end if
  1644. click at 500,500
  1645. hide msg
  1646. set lockmessages to false
  1647. unlock screen
  1648. end multiwordsearch
  1649.  
  1650. on mergeoldiq
  1651. global destination,source
  1652. put the long name of this stack into destination
  1653. put "" into source
  1654. put "Select your IQ Index."
  1655. put filename(STAK) into source
  1656. if source is empty then
  1657. hide msg
  1658. exit mergeoldiq
  1659. end if
  1660. go to card 1
  1661. hide msg
  1662. lock screen
  1663. go to card 2 of stack source
  1664. put "" into noscript
  1665. set the script of this stack to noscript
  1666. put the number of cards -1 into cardcount
  1667. put item 1 to 2 of bg fld fullpath into dupe
  1668. go first card of destination
  1669. find whole dupe in bg fld fullpath
  1670. if the foundline is not empty then
  1671. go card 1
  1672. answer "Some images from the previous index have already been merged!"
  1673. answer "Delete duplicate images from previous index and merge again."
  1674. exit mergeoldiq
  1675. end if
  1676. go card 2 of stack source
  1677. put card field cat of card 1 into newcats
  1678.  
  1679. repeat with i = 1 to cardcount
  1680. set cursor to busy
  1681. put "Merging info for image " & cardcount & "."
  1682. put bg fld ref into desc
  1683. put bg fld flsz into typensize
  1684. put bg fld fullpath into bigwhere
  1685. choose select tool
  1686. domenu select all
  1687. domenu "copy picture"
  1688. go next card
  1689. push card
  1690. go last card of destination
  1691. type "N" with commandkey
  1692. domenu "paste picture"
  1693. domenu "transparent"
  1694. put desc into bg fld ref
  1695. put typensize into bg fld flsz
  1696. put bigwhere into bg fld fullpath
  1697. go last card of destination
  1698. pop card
  1699. subtract 1 from cardcount
  1700. end repeat
  1701. choose browse tool
  1702. go first card of destination
  1703. put "Now updating categories."
  1704. repeat the number of lines in newcats
  1705. find line 1 of newcats in card field cat
  1706. if the foundline is empty then
  1707. put return & line 1 of newcats after card field cat
  1708. delete line 1 of newcats
  1709. else
  1710. delete line 1 of newcats
  1711. end if
  1712. end repeat
  1713. alpha
  1714. unlock screen
  1715. hide msg
  1716. click at 500,500
  1717. put the number of cards -1 into numcrds
  1718. put the size of this stack into stacksize
  1719. repeat 3
  1720. delete last char of stacksize
  1721. end repeat
  1722. put "Images in index:" && numcrds into card fld "size display"
  1723. put "    Index size:" && stacksize && "K" after card fld "size display"
  1724. put "Merge process complete."
  1725. wait 2 seconds
  1726. hide msg
  1727. end mergeoldiq
  1728.  
  1729. on gonextfav
  1730. if card fld favs of card 1 = empty then
  1731. answer "The Marked Favorites field is empty."
  1732. exit gonextfav
  1733. end if
  1734. if the number of this card = 1 then
  1735. put 1 into card fld tracer
  1736. lock screen
  1737. find string line card fld tracer of card field favs in bg fld ref
  1738. unlock screen
  1739. else
  1740. lock screen
  1741. go card 1
  1742. add 1 to card field tracer
  1743. find string line card fld tracer of card field favs in bg fld ref
  1744. end if
  1745. end gonextfav
  1746.  
  1747. on goprevfav
  1748. if card fld favs of card 1 = empty then
  1749. answer "The Marked Favorites field is empty."
  1750. exit goprevfav
  1751. end if
  1752. if the number of this card = 1 then
  1753. put the number of lines of card field favs into card fld tracer
  1754. lock screen
  1755. find string line card fld tracer of card field favs in bg fld ref
  1756. unlock screen
  1757. else
  1758. lock screen
  1759. go card 1
  1760. subtract 1 from card field tracer
  1761. find string line card fld tracer of card field favs in bg fld ref
  1762. end if
  1763. end goprevfav
  1764.  
  1765. on deleteall
  1766. answer "Delete all " & the number of cards - 1 & " images?" with YES or No
  1767. if it is "No" then
  1768. exit deleteall
  1769. end if
  1770. if it is "yes" then
  1771. answer "This proceedure will delete all information from the index! Do you wish to continue?" with "YES" or "NO"
  1772. if it is "No" then
  1773. exit deleteall
  1774. end if
  1775. end if
  1776. put "Please Wait... deleting all images."
  1777. lock screen
  1778. repeat for the number of cards
  1779. if the short name of this card is "control" then
  1780. go next
  1781. else
  1782. set cursor to busy
  1783. doMenu "Delete Card"
  1784. end if
  1785. end repeat
  1786. unlock screen
  1787. put "" into card field search
  1788. put "" into card field cat
  1789. put "" into card field favs
  1790. put the number of cards -1 into numcrds
  1791. put the size of this stack into stacksize
  1792. repeat 3
  1793. delete last char of stacksize
  1794. end repeat
  1795. put "Images in index:" && numcrds into card fld "size display"
  1796. put "    Index size:" && stacksize && "K" after card fld "size display"
  1797. domenu "compact stack"
  1798. hide msg
  1799. end deleteall
  1800.  
  1801. on decompressit
  1802. put "PAINT" into types
  1803. put return & "PICT" after types
  1804. put return & "EPS" after types
  1805. put return & "TIFF" after types
  1806. put ChooseSome (types,"File Format?") into format
  1807. if format is empty then exit decompressit
  1808. if format is "PAINT" then
  1809. put "PNTG" into type
  1810. end if
  1811. if format is "PICT" then
  1812. put "PICT" into type
  1813. end if
  1814. if format is "EPS" then
  1815. put "EPSF" into type
  1816. end if
  1817. if format is "TIFF" then
  1818. put "TIFF" into type
  1819. end if
  1820. put filename(type) into hold
  1821. if hold is empty then
  1822. if the short name of this card = "control" then
  1823. hide msg
  1824. exit decompressit
  1825. end if
  1826. end if
  1827. end decompressit
  1828. </script>
  1829. </background>
  1830.